package com.cloudlinkscm.base.filecenter.service.impl;

import com.cloudlinkscm.base.filecenter.domain.SysAuthCodeManager;
import com.cloudlinkscm.base.filecenter.model.dto.RequestAuthenticationDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

/**
 * @author : tac
 * @date : 2017/7/25
 */
@Service
@Profile("test")
public class RequestAuthenticationServiceImpl4Test extends RequestAuthenticationServiceImpl {
    @Autowired
    public RequestAuthenticationServiceImpl4Test(SysAuthCodeManager sysAuthCodeManager) {
        super(sysAuthCodeManager);
    }

    @Override
    protected boolean isRepeatRequest(RequestAuthenticationDto dto) {
        //测试环境下不较验重复请求
        return false;
    }

    @Override
    protected boolean isTimeout(RequestAuthenticationDto dto) {
        //测试环境下不较验超时
        return false;
    }
}
